package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_ZGDWYJ"
 *     
*/
public class DmZgdwyj implements Serializable {

    /** identifier field */
    private String zgdwyjDm;

    /** persistent field */
    private String zgdwyjMc;

    /** full constructor */
    public DmZgdwyj(String zgdwyjDm, String zgdwyjMc) {
        this.zgdwyjDm = zgdwyjDm;
        this.zgdwyjMc = zgdwyjMc;
    }

    /** default constructor */
    public DmZgdwyj() {
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="ZGDWYJ_DM"
     *         
     */
    public String getZgdwyjDm() {
        return this.zgdwyjDm;
    }

    public void setZgdwyjDm(String zgdwyjDm) {
        this.zgdwyjDm = zgdwyjDm;
    }

    /** 
     *            @hibernate.property
     *             column="ZGDWYJ_MC"
     *             length="30"
     *             not-null="true"
     *         
     */
    public String getZgdwyjMc() {
        return this.zgdwyjMc;
    }

    public void setZgdwyjMc(String zgdwyjMc) {
        this.zgdwyjMc = zgdwyjMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("zgdwyjDm", getZgdwyjDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmZgdwyj) ) return false;
        DmZgdwyj castOther = (DmZgdwyj) other;
        return new EqualsBuilder()
            .append(this.getZgdwyjDm(), castOther.getZgdwyjDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getZgdwyjDm())
            .toHashCode();
    }

}
